
#include <QtCore/QDebug>
#include <QtCore/QSharedMemory>

#include <qt_windows.h>


#include "LcdUtorrentApplication.h"

#define SHARED_MEMORY_SINGLETON		"{CA439E19-B472-4491-A474-79E5A56DA935}"


int main(int argc, char *argv[])
{
	HWND hwnd = GetConsoleWindow();
	ShowWindow(hwnd, 0);

	QSharedMemory sharedMemory(SHARED_MEMORY_SINGLETON);
	if(sharedMemory.create(sizeof(int))==true)
	{
		LcdUtorrentApplication a(argc, argv);

		if(a.exitCode!=0)
			return a.exitCode;
		int ret = a.exec();
		a.shutdown();
		return ret;
	}
	return 0;
}